/*
 * @Date: 2021-08-18 11:01:21
 * @information: swaggerRouter配置
 */
import { SwaggerRouter } from 'koa-swagger-decorator'
import * as path from 'path'

const router = new SwaggerRouter()

router.swagger({
  title: 'A diary project',
  description: 'Api doc',
  version: '1.0.0',
})

// 查找对应目录下的controller类
router.mapDir(path.resolve(__dirname, '../controller/'))

export default router

